<template>
    <div>
        <div class="title">周末去哪儿</div>
        <ul>
            <li class="item" v-for="item of list" :key="item.id">
                <div class="item-top">
                    <img class="item-img" :src="item.imgUrl" alt="">
                </div>
                <div class="item-title">{{item.title}}</div>
                <div class="item-desc">
                    <div class="item-right-content">{{item.desc}}</div>
                </div>
            </li>

        </ul>
    </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props:{
      list:Array
  }
}
</script>

<style lang="stylus" scoped>
    .title
        margin-bottom:.2rem
        line-height:.8rem
        background: #eee
        text-indent:.2rem
    .item
        width:100%
        margin-top:.3rem
        .item-top
            width:100%
            line-height:.2rem
            .item-img
                width:100%
        .item-title
            margin:0 2%
            width:96%
            font-weight:bold
            line-height:.4rem
        .item-desc
            margin:0 2%
            width:96%
            line-height:.4rem
            color:#333
</style>
